package com.atguigu.spring6.iocxml.ditest;

import java.util.Arrays;

/**
 * @author: Michael
 * @date: 2025/5/13
 * @desc:
 */
public class Emp {

    private Dept dept;

    private String ename;

    private Integer age;

    private String[] hobbies;

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String[] getHobbies() {
        return hobbies;
    }

    public void setHobbies(String[] hobbies) {
        this.hobbies = hobbies;
    }

    public void work() {
        System.out.println(ename + " emp work ......" + age);
        dept.info();
        System.out.println(Arrays.toString(hobbies));
    }
}
